import CryptoJS from 'crypto-js';

export const  CryptoUtil = {
  encrypt: (text,key  = 'oil') => {
    return CryptoJS.AES.encrypt(text, key).toString();
  },
  decrypt: (text,key  = 'oil') => {
    return CryptoJS.AES.decrypt(text, key).toString(CryptoJS.enc.Utf8);
  }
}